/**
 * 2015年6月4日上午8:36:51
 * GarbageBean.javaGarbageBean
 */
package com.service.bean.garbage;

import java.sql.Timestamp;
import java.util.Date;

/**
 * 2015年6月4日上午8:36:51
 *
 * 张
 */
public class GarbageBean {

	// 终端编号
	private Long gpsNo;

	// gps时间
	private Date gpsTime;

	// 经度
	private double lng;

	// 维度
	private double lat;

	// 车辆id
	private String equipmentId;

	// 驾驶员编号
	private String driverNumber;

	// 垃圾桶编号
	private String rfid;

	// 垃圾重量
	private double collectionAmt;

	// 百度经度
	private double baiDuLng;

	// 百度维度
	private double baiDuLat;

	// 原始数据
	private String rawData;

	public Long getGpsNo() {
		return gpsNo;
	}

	public void setGpsNo(Long gpsNo) {
		this.gpsNo = gpsNo;
	}

	public Date getGpsTime() {
		return gpsTime;
	}

	public void setGpsTime(Date gpsTime) {
		this.gpsTime = gpsTime;
	}

	public double getLng() {
		return lng;
	}

	public void setLng(double lng) {
		this.lng = lng;
	}

	public double getLat() {
		return lat;
	}

	public void setLat(double lat) {
		this.lat = lat;
	}

	public String getEquipmentId() {
		return equipmentId;
	}

	public void setEquipmentId(String equipmentId) {
		this.equipmentId = equipmentId;
	}

	public String getRfid() {
		return rfid;
	}

	public void setRfid(String rfid) {
		this.rfid = rfid;
	}

	public double getCollectionAmt() {
		return collectionAmt;
	}

	public void setCollectionAmt(double collectionAmt) {
		this.collectionAmt = collectionAmt;
	}

	public double getBaiDuLng() {
		return baiDuLng;
	}

	public void setBaiDuLng(double baiDuLng) {
		this.baiDuLng = baiDuLng;
	}

	public double getBaiDuLat() {
		return baiDuLat;
	}

	public void setBaiDuLat(double baiDuLat) {
		this.baiDuLat = baiDuLat;
	}

	public String getRawData() {
		return rawData;
	}

	public void setRawData(String rawData) {
		this.rawData = rawData;
	}

	public String getDriverNumber() {
		return driverNumber;
	}

	public void setDriverNumber(String driverNumber) {
		this.driverNumber = driverNumber;
	}
	//垃圾称重
	public Object[] getAll() {
		Object[] array = new Object[11];
		array[0] = "'" + this.gpsNo + "'";
		array[1] = this.gpsTime == null ? this.gpsTime : "'" + new Timestamp(this.gpsTime.getTime()) + "'";
		array[2] = String.valueOf(this.lng);
		array[3] = String.valueOf(this.lat);
		array[4] = equipmentId == null ? equipmentId :"'"+equipmentId+"'";
		array[5] = rfid == null ? rfid : "'" + this.rfid + "'";
		array[6] = String.valueOf(this.collectionAmt);
		array[7] = String.valueOf(this.baiDuLng);
		array[8] = String.valueOf(this.baiDuLat);
		array[9] = this.rawData == null ? this.rawData :"'"+this.rawData+"'";
		array[10] = this.driverNumber==null?this.driverNumber:"'"+this.driverNumber+"'";
		return array;
	}
	//垃圾称重报警数据
	public Object[] getAlarmAll() {
		Object[] array = new Object[2];
		array[0] = "'" + this.equipmentId + "'";
		array[1] = this.gpsTime == null ? this.gpsTime : "'" + new Timestamp(this.gpsTime.getTime()) + "'";
		return array;
	}
}
